package com.hengpeng.itfin.job;

import com.hengpeng.common.cis.ComponentContextLoader;
import com.hengpeng.common.scheduling.AbstractJob;
import com.hengpeng.common.scheduling.ScheduleConfig;
import com.hengpeng.itfin.service.BorrowService;

/**
 * <pre>
 * 还款计划逾期维护
 * </pre>
 * @author chenhui
 * @version 1.0, 2015-6-1
 */
public class RepaymentPlanOverdureJob extends AbstractJob
{
	@Override
	public void exec(boolean isTimeout, ScheduleConfig config)
	{
		long start = System.currentTimeMillis();
		log.info("还款计划逾期作业开始执行:" + start);
		BorrowService service = ComponentContextLoader.getBean(BorrowService.class);
		try
		{
			service.overdure();
		}
		catch (Exception e)
		{
			log.info("执行开标任务异常", e);
		}
		log.info("还款计划逾期作业结束执行:" + start);
	}
}
